from django.conf.urls import url

from booktest import views_05使用APIview改写restAPI接口

urlpatterns = [
    url(r'^books/$', views_05使用APIview改写restAPI接口.BookListView.as_view()),
    url(r'^books/(?P<pk>\d+)/$', views_05使用APIview改写restAPI接口.BookDetailView.as_view())
]